import Mock from "mockjs"

// 你他妈搞个大小写转换会似啊
Mock.mock(/\/api\/webnav$/, 'get', (options) => {
    console.log('MockJS 拦截到请求:', options.url)
    return {
        code: 200,
        msg: 'success',
        data: [
            {
                name: "哔哩哔哩",
                image: "https://so1.360tres.com/t018a904f3df8702176.png",
                rating: 4.5,
                redirect: 'https://www.bilibili.com/', // 同时保留两个字段以兼容
            },
            {
                name: "少前2",
                image: "https://community-cdn.exiliumgf.com/prod/image/1761551495018.jpeg",
                rating: 5,
                redirect: 'https://gf2-bbs.exiliumgf.com/', // 同时保留两个字段以兼容
            },
            {
                name: "langchain.js 文档",
                image: "https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif",
                rating: 3,
                redirect: 'https://js.langchain.com.cn/docs/', // 同时保留两个字段以兼容
            },
            {
                name: "哔哩哔哩",
                image: "https://so1.360tres.com/t018a904f3df8702176.png",
                rating: 4.5,
                redirect: 'https://www.bilibili.com/', // 同时保留两个字段以兼容
            },
            {
                name: "少前2",
                image: "https://community-cdn.exiliumgf.com/prod/image/1761551495018.jpeg",
                rating: 5,
                redirect: 'https://gf2-bbs.exiliumgf.com/', // 同时保留两个字段以兼容
            },
            {
                name: "langchain.js 文档",
                image: "https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif",
                rating: 3,
                redirect: 'https://js.langchain.com.cn/docs/', // 同时保留两个字段以兼容
            },
            {
                name: "哔哩哔哩",
                image: "https://so1.360tres.com/t018a904f3df8702176.png",
                rating: 4.5,
                redirect: 'https://www.bilibili.com/', // 同时保留两个字段以兼容
            },
            {
                name: "少前2",
                image: "https://community-cdn.exiliumgf.com/prod/image/1761551495018.jpeg",
                rating: 5,
                redirect: 'https://gf2-bbs.exiliumgf.com/', // 同时保留两个字段以兼容
            },
            {
                name: "langchain.js 文档",
                image: "https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif",
                rating: 3,
                redirect: 'https://js.langchain.com.cn/docs/', // 同时保留两个字段以兼容
            },
            {
                name: "哔哩哔哩",
                image: "https://so1.360tres.com/t018a904f3df8702176.png",
                rating: 4.5,
                redirect: 'https://www.bilibili.com/', // 同时保留两个字段以兼容
            },
            {
                name: "少前2",
                image: "https://community-cdn.exiliumgf.com/prod/image/1761551495018.jpeg",
                rating: 5,
                redirect: 'https://gf2-bbs.exiliumgf.com/', // 同时保留两个字段以兼容
            },
            {
                name: "langchain.js 文档",
                image: "https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif",
                rating: 3,
                redirect: 'https://js.langchain.com.cn/docs/', // 同时保留两个字段以兼容
            },
            {
                name: "哔哩哔哩",
                image: "https://so1.360tres.com/t018a904f3df8702176.png",
                rating: 4.5,
                redirect: 'https://www.bilibili.com/', // 同时保留两个字段以兼容
            },
            {
                name: "少前2",
                image: "https://community-cdn.exiliumgf.com/prod/image/1761551495018.jpeg",
                rating: 5,
                redirect: 'https://gf2-bbs.exiliumgf.com/', // 同时保留两个字段以兼容
            },
            {
                name: "langchain.js 文档",
                image: "https://pica.zhimg.com/50/v2-56e8bbb52aa271012541c1fe1ceb11a2_r.gif",
                rating: 3,
                redirect: 'https://js.langchain.com.cn/docs/', // 同时保留两个字段以兼容
            },
        ],
    }
})
